﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using Formboard.Resources;

namespace Formboard
{
    public class PermissionJoinBoardRequest
    {
        public PermissionJoinDescription create_board_request = new PermissionJoinDescription();

        public PermissionJoinBoardRequest()
        {
        }
        public PermissionJoinBoardRequest(User u)
        {
            create_board_request.sender.name = u.screenname;
        }

        public class PermissionJoinDescription
        {
            public FieldWithStringName sender = new FieldWithStringName();
        }


        public class FieldWithStringName
        {
            [XmlAttribute("name")]
            public string name;
        }
    }
}
